from rest_framework.routers import DefaultRouter

from . import views


urlpatterns = []

router = DefaultRouter()

# 因为后期没有用querryset设置查询集,所以必须给base_name传值
router.register(r'areas', views.AreasViewSet, base_name='areas')

urlpatterns += router.urls